import { Button } from 'antd-mobile'
import React from 'react'
import { useNavigate } from 'react-router-dom'

function index() {
    const nav=useNavigate()
    const dain=()=>{
        localStorage.setItem('token',('Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwidXNlcm5hbWUiOm51bGwsInBhc3N3b3JkIjpudWxsLCJ0ZWwiOiIxMzgwMDAwMDAwMSIsImF2YXRhciI6Imh0dHBzOi8vYXBpLXRpY2tldC5saXVsb25nYmluLnRvcC9pbWFnZXMvYXZhdGFyLmpwZyIsImlhdCI6MTc0NzEwOTA5MSwiZXhwIjoxNzQ5NzAxMDkxfQ.sMq1w471bvE0zr8osFAItIjcgolbU6HpU6uhMzq-UHI'))
        nav(-1)
    }
  return (
    <div>
        <Button onClick={()=>dain()}>登录</Button>
    </div>
  )
}

export default index